package com.example.wallet.db

import androidx.room.*
import com.example.wallet.bean.AccountInfo
import com.example.wallet.bean.UserInfoWrapper

@Dao
interface UserInfoDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun save(user_info: UserInfoWrapper?): Long

    @Query("select *from user_info_wrapper where `token`=:token")
    fun getCache(token: String?): UserInfoWrapper?

    @Delete
    fun delete(user_info: UserInfoWrapper?)
}